export default interface HttpRequest<D = any> {

    url: string;

    method?: 'GET' | 'POST' | 'PUT' | 'DELETE';

    timeout?: number;

    responseType?: 'text' | 'json';

    data?: D;

    headers?: Record<string, string>;

    userAgent?: string;

    /**
     * 编码
     */
    charset?: string;

}